import docutils.core as docutils_core
import core
import render


class Plugin(core.ContentType):
  """A canvas-based doodle.
  """

  @classmethod
  def Customize(cls, content, src, **kwargs):
    content.src = src

  @classmethod
  def Html(cls, content, editor=False, **kwargs):
    template_dir = 'content_types'
    template_name = cls.name + '.html'
    kwargs['content_html'] = '<b>TODO</b>'

    return render.Render(
        template_dir, template_name, content_type=cls, content=content,
        editor=editor, **kwargs)
